﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using aeClient.Data;

namespace aeClient
{
    public partial class ProjectListPage : UserControl
    {
        public List<Project> ProjectList {get; set;}

        public ProjectListPage()
        {
            Project pj = new Project();
            pj.Name = "test01";
            pj.Status = PROJECT_STATUS.INPROCESS;
            pj.Progress = 50;

            ProjectList = new List<Project>();
            ProjectList.Add(pj);
            pj = new Project(pj);
            pj.Name = "test02";
            pj.Progress = 30;
            pj.Status = PROJECT_STATUS.DONE;
            ProjectList.Add(pj);
            pj = new Project();
            pj.Status = PROJECT_STATUS.ERROR;
            pj.Name = "test03";
            pj.Progress = 80;
            ProjectList.Add(pj);


            InitializeComponent();

            ProjectGrid.ItemsSource = ProjectList;            
        }
    }
}
